package com.ruoyi.web.controller.mdm;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.mdm.service.ISkuToEsTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * skuToEsTaskController
 *
 * @author shiseido
 * @date 2025-03-01
 */
@RestController
@RequestMapping("/mdm/skuToEsTask")
public class SkuToEsTaskController extends BaseController {
    @Autowired
    private ISkuToEsTaskService skuToEsTaskService;

    /**
     * SKU同步到ES
     */
    @PostMapping("/taskTest")
    public void taskTest() {
        skuToEsTaskService.syncSkuToEs();
    }
}
